﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace WebFirst.Entities
{
    /// <summary>
    /// 心血管病风险评估表
    ///</summary>
    [SugarTable("cardiovascular_assessment")]
    public class CardiovascularAssessment
    {
        /// <summary>
        /// 主键自增id 
        ///</summary>
         [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true   )]
         public int Id { get; set; }
        /// <summary>
        /// 患者ID 
        ///</summary>
        [SugarColumn(ColumnName = "PatientId")]
        public string PatientId { get; set; }
        public string? DataMarker { get; set; }
        /// <summary>
        /// 评估日期 
        ///</summary>
        [SugarColumn(ColumnName="DateEvaluation"    )]
         public DateTime? DateEvaluation { get; set; }
        /// <summary>
        /// 体征健康评估（1.正常 2.腹型肥胖 3.肥胖） 
        ///</summary>
         [SugarColumn(ColumnName="PhysicalHealth"    )]
         public int? PhysicalHealth { get; set; }
        /// <summary>
        /// 服用降压药 （1.是 2.否）
        ///</summary>
        [SugarColumn(ColumnName="PressureMedication"    )]
         public int? PressureMedication { get; set; }
        /// <summary>
        /// 血压健康评估（1.正常 2.低血压 3.高血压） 
        ///</summary>
         [SugarColumn(ColumnName="BloodAssessment"    )]
         public int? BloodAssessment { get; set; }
        /// <summary>
        /// 随机血糖 
        ///</summary>
         [SugarColumn(ColumnName="RandomBloodSugar"    )]
         public string? RandomBloodSugar { get; set; }
        /// <summary>
        /// 空腹血糖 
        ///</summary>
         [SugarColumn(ColumnName="FastingBloodGlucose"    )]
         public string? FastingBloodGlucose { get; set; }
        /// <summary>
        /// 餐后血糖 
        ///</summary>
         [SugarColumn(ColumnName="PostprandialBloodGlucose"    )]
         public string? PostprandialBloodGlucose { get; set; }
        /// <summary>
        /// 血糖健康评估（1.血糖正常 2.空腹血糖受损 3.糖耐量抵减 4.糖尿病） 
        ///</summary>
         [SugarColumn(ColumnName="BloodGlucoseAssessment"    )]
         public int? BloodGlucoseAssessment { get; set; }
        /// <summary>
        /// 总胆固醇 
        ///</summary>
         [SugarColumn(ColumnName="TotalCholesterol"    )]
         public decimal? TotalCholesterol { get; set; }
        /// <summary>
        /// 甘油三酯 
        ///</summary>
         [SugarColumn(ColumnName="Triglyceride"    )]
         public decimal? Triglyceride { get; set; }
        /// <summary>
        /// 低密度脂蛋白 
        ///</summary>
         [SugarColumn(ColumnName="LowLipoprotein"    )]
         public decimal? LowLipoprotein { get; set; }
        /// <summary>
        /// 高密度脂蛋白 
        ///</summary>
         [SugarColumn(ColumnName="HighLipoprotein"    )]
         public decimal? HighLipoprotein { get; set; }
        /// <summary>
        /// 血脂健康评估（1.血脂正常 2.高脂血症） 
        ///</summary>
         [SugarColumn(ColumnName="LipidAssessment"    )]
         public int? LipidAssessment { get; set; }
        /// <summary>
        /// 是否吸烟 （1.是 2.否）
        ///</summary>
        [SugarColumn(ColumnName="Smoking"    )]
         public int? Smoking { get; set; }
        /// <summary>
        /// 糖化血红蛋白 
        ///</summary>
         [SugarColumn(ColumnName="GlycosylatedHemoglobin"    )]
         public decimal? GlycosylatedHemoglobin { get; set; }
        /// <summary>
        /// 同型半胱氨酸 
        ///</summary>
         [SugarColumn(ColumnName="Homocysteine"    )]
         public decimal? Homocysteine { get; set; }
        /// <summary>
        /// 血清肌酐 
        ///</summary>
         [SugarColumn(ColumnName="SerumCreatinine"    )]
         public decimal? SerumCreatinine { get; set; }
        /// <summary>
        /// 血尿酸 
        ///</summary>
         [SugarColumn(ColumnName="UricAcid"    )]
         public decimal? UricAcid { get; set; }
        /// <summary>
        /// 尿微量白蛋白 
        ///</summary>
         [SugarColumn(ColumnName="TraceAlbumin"    )]
         public decimal? TraceAlbumin { get; set; }
        /// <summary>
        /// 心血管其他危险因素
        ///</summary>
         [SugarColumn(ColumnName="HighHomocysteine"    )]
         public string HighHomocysteine { get; set; }
        /// <summary>
        /// 血压分级(1.正常血压 2. 1级高血压 3. 2级高血压 4. 3级高血压) 
        ///</summary>
         [SugarColumn(ColumnName="BloodGrading" )]
         public int? BloodGrading { get; set; }
        /// <summary>
        /// 血压危险分层（1.低危 2.中危 3.高危） 
        ///</summary>
         [SugarColumn(ColumnName="BloodDanger"    )]
         public int? BloodDanger { get; set; }
        /// <summary>
        /// 糖尿病分层（1.低危 2.中危 3.高危 4.极高危） 
        ///</summary>
         [SugarColumn(ColumnName="StratificationDiabetes"    )]
         public int? StratificationDiabetes { get; set; }
        /// <summary>
        /// 高血脂分层（1.低危 2.中危 3.高危） 
        ///</summary>
         [SugarColumn(ColumnName="Hyperlipemia"    )]
         public int? Hyperlipemia { get; set; }
        /// <summary>
        /// 心血管（1.低危 2.中危 3.高危） 
        ///</summary>
         [SugarColumn(ColumnName="Cardiovascular"    )]
         public int? Cardiovascular { get; set; }
        /// <summary>
        /// 录入人
        ///</summary>
        [SugarColumn(ColumnName = "EntryClerk")]
        public string? EntryClerk { get; set; }
        /// <summary>
        /// 录入时间 
        ///</summary>
        [SugarColumn(ColumnName = "EntryTime")]
        public DateTime? EntryTime { get; set; }
        /// <summary>
        /// 最近修改人
        ///</summary>
        [SugarColumn(ColumnName = "RecentReviser")]
        public string? RecentReviser { get; set; }
        /// <summary>
        /// 最后更新时间 
        ///</summary>
        [SugarColumn(ColumnName = "LastUpdateTime")]
        public DateTime? LastUpdateTime { get; set; }
        /// <summary>
        /// 既往史
        ///</summary>
        [SugarColumn(ColumnName = "PreviousHistory")]
        public string PreviousHistory { get; set; }
        /// <summary>
        /// 家族史
        ///</summary>
        [SugarColumn(ColumnName = "FamilyHistory")]
        public string? FamilyHistory { get; set; }
        /// <summary>
        /// 靶器官损害
        ///</summary>
        [SugarColumn(ColumnName = "OrganDamage")]
        public string? OrganDamage { get; set; }
        /// <summary>
        /// 伴临床疾患
        ///</summary>
        [SugarColumn(ColumnName = "ClinicalDisorder")]
        public string? ClinicalDisorder { get; set; }
        
        /// <summary>
        /// 身高
        ///</summary>
        [SugarColumn(ColumnName = "Height")]
        public decimal Height { get; set; }
        /// <summary>
        /// 体重
        ///</summary>
        [SugarColumn(ColumnName = "Weight")]
        public decimal Weight { get; set; }
        /// <summary>
        /// 腰围
        ///</summary>
        [SugarColumn(ColumnName = "Waistline")]
        public int? Waistline { get; set; }
        /// <summary>
        /// 血压
        ///</summary>
        [SugarColumn(ColumnName = "BloodRessure")]
        public string? BloodRessure { get; set; }
    }

    public class CardiovascularAssessmentGw
    {
        /// <summary>
        /// 主键自增id 
        ///</summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
        public int Id { get; set; }
        /// <summary>
        /// 患者ID 
        ///</summary>
        [SugarColumn(ColumnName = "PatientId")]
        public string PatientId { get; set; }
        public string IdCard { get; set; }
        /// <summary>
        /// 评估日期 
        ///</summary>
        [SugarColumn(ColumnName = "DateEvaluation")]
        public DateTime? DateEvaluation { get; set; }
        /// <summary>
        /// 体征健康评估（1.正常 2.腹型肥胖 3.肥胖） 
        ///</summary>
        [SugarColumn(ColumnName = "PhysicalHealth")]
        public int? PhysicalHealth { get; set; }
        /// <summary>
        /// 服用降压药 （1.是 2.否）
        ///</summary>
        [SugarColumn(ColumnName = "PressureMedication")]
        public int? PressureMedication { get; set; }
        /// <summary>
        /// 血压健康评估（1.正常 2.低血压 3.高血压） 
        ///</summary>
        [SugarColumn(ColumnName = "BloodAssessment")]
        public int? BloodAssessment { get; set; }
        /// <summary>
        /// 随机血糖 
        ///</summary>
        [SugarColumn(ColumnName = "RandomBloodSugar")]
        public string? RandomBloodSugar { get; set; }
        /// <summary>
        /// 空腹血糖 
        ///</summary>
        [SugarColumn(ColumnName = "FastingBloodGlucose")]
        public string? FastingBloodGlucose { get; set; }
        /// <summary>
        /// 餐后血糖 
        ///</summary>
        [SugarColumn(ColumnName = "PostprandialBloodGlucose")]
        public string? PostprandialBloodGlucose { get; set; }
        /// <summary>
        /// 血糖健康评估（1.血糖正常 2.空腹血糖受损 3.糖耐量抵减 4.糖尿病） 
        ///</summary>
        [SugarColumn(ColumnName = "BloodGlucoseAssessment")]
        public int? BloodGlucoseAssessment { get; set; }
        /// <summary>
        /// 总胆固醇 
        ///</summary>
        [SugarColumn(ColumnName = "TotalCholesterol")]
        public decimal? TotalCholesterol { get; set; }
        /// <summary>
        /// 甘油三酯 
        ///</summary>
        [SugarColumn(ColumnName = "Triglyceride")]
        public decimal? Triglyceride { get; set; }
        /// <summary>
        /// 低密度脂蛋白 
        ///</summary>
        [SugarColumn(ColumnName = "LowLipoprotein")]
        public decimal? LowLipoprotein { get; set; }
        /// <summary>
        /// 高密度脂蛋白 
        ///</summary>
        [SugarColumn(ColumnName = "HighLipoprotein")]
        public decimal? HighLipoprotein { get; set; }
        /// <summary>
        /// 血脂健康评估（1.血脂正常 2.高脂血症） 
        ///</summary>
        [SugarColumn(ColumnName = "LipidAssessment")]
        public int? LipidAssessment { get; set; }
        /// <summary>
        /// 是否吸烟 （1.是 2.否）
        ///</summary>
        [SugarColumn(ColumnName = "Smoking")]
        public int? Smoking { get; set; }
        /// <summary>
        /// 糖化血红蛋白 
        ///</summary>
        [SugarColumn(ColumnName = "GlycosylatedHemoglobin")]
        public decimal? GlycosylatedHemoglobin { get; set; }
        /// <summary>
        /// 同型半胱氨酸 
        ///</summary>
        [SugarColumn(ColumnName = "Homocysteine")]
        public decimal? Homocysteine { get; set; }
        /// <summary>
        /// 血清肌酐 
        ///</summary>
        [SugarColumn(ColumnName = "SerumCreatinine")]
        public decimal? SerumCreatinine { get; set; }
        /// <summary>
        /// 血尿酸 
        ///</summary>
        [SugarColumn(ColumnName = "UricAcid")]
        public decimal? UricAcid { get; set; }
        /// <summary>
        /// 尿微量白蛋白 
        ///</summary>
        [SugarColumn(ColumnName = "TraceAlbumin")]
        public decimal? TraceAlbumin { get; set; }
        /// <summary>
        /// 心血管其他危险因素
        ///</summary>
        [SugarColumn(ColumnName = "HighHomocysteine")]
        public string HighHomocysteine { get; set; }
        /// <summary>
        /// 血压分级(1.正常血压 2. 1级高血压 3. 2级高血压 4. 3级高血压) 
        ///</summary>
        [SugarColumn(ColumnName = "BloodGrading")]
        public int? BloodGrading { get; set; }
        /// <summary>
        /// 血压危险分层（1.低危 2.中危 3.高危） 
        ///</summary>
        [SugarColumn(ColumnName = "BloodDanger")]
        public int? BloodDanger { get; set; }
        /// <summary>
        /// 糖尿病分层（1.低危 2.中危 3.高危 4.极高危） 
        ///</summary>
        [SugarColumn(ColumnName = "StratificationDiabetes")]
        public int? StratificationDiabetes { get; set; }
        /// <summary>
        /// 高血脂分层（1.低危 2.中危 3.高危） 
        ///</summary>
        [SugarColumn(ColumnName = "Hyperlipemia")]
        public int? Hyperlipemia { get; set; }
        /// <summary>
        /// 心血管（1.低危 2.中危 3.高危） 
        ///</summary>
        [SugarColumn(ColumnName = "Cardiovascular")]
        public int? Cardiovascular { get; set; }
        /// <summary>
        /// 录入人
        ///</summary>
        [SugarColumn(ColumnName = "EntryClerk")]
        public string? EntryClerk { get; set; }
        /// <summary>
        /// 录入时间 
        ///</summary>
        [SugarColumn(ColumnName = "EntryTime")]
        public DateTime? EntryTime { get; set; }
        /// <summary>
        /// 最近修改人
        ///</summary>
        [SugarColumn(ColumnName = "RecentReviser")]
        public string? RecentReviser { get; set; }
        /// <summary>
        /// 最后更新时间 
        ///</summary>
        [SugarColumn(ColumnName = "LastUpdateTime")]
        public DateTime? LastUpdateTime { get; set; }
        /// <summary>
        /// 既往史
        ///</summary>
        [SugarColumn(ColumnName = "PreviousHistory")]
        public string PreviousHistory { get; set; }
        /// <summary>
        /// 家族史
        ///</summary>
        [SugarColumn(ColumnName = "FamilyHistory")]
        public string? FamilyHistory { get; set; }
        /// <summary>
        /// 靶器官损害
        ///</summary>
        [SugarColumn(ColumnName = "OrganDamage")]
        public string? OrganDamage { get; set; }
        /// <summary>
        /// 伴临床疾患
        ///</summary>
        [SugarColumn(ColumnName = "ClinicalDisorder")]
        public string? ClinicalDisorder { get; set; }

        /// <summary>
        /// 身高
        ///</summary>
        [SugarColumn(ColumnName = "Height")]
        public decimal Height { get; set; }
        /// <summary>
        /// 体重
        ///</summary>
        [SugarColumn(ColumnName = "Weight")]
        public decimal Weight { get; set; }
        /// <summary>
        /// 腰围
        ///</summary>
        [SugarColumn(ColumnName = "Waistline")]
        public int? Waistline { get; set; }
        /// <summary>
        /// 血压
        ///</summary>
        [SugarColumn(ColumnName = "BloodRessure")]
        public string? BloodRessure { get; set; }
    }
}
